package com.wp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: WangPeng
 * @createTime: 2022/11/18 17:08
 * @description:
 * @version: v1.0
 */
@Controller
public class PageController {

    @RequestMapping("/index")
    public String index(){
        //thymeleaf会解析为templates/index.html 因为templates目录下的页面无法重定向，只能通过转发才能到该页面
        return "index";
    }

}
